package com.atguigu.create.builder;

public class HouseClient {
    public static void main(String[] args) {
        // 1 construct
        HoustDirector houstDirector = new HoustDirector(new CommonHouseBuilder());
        houstDirector.constructHouse();

        System.out.println("------------------");

        // 2 set
        HoustDirector houstDirector2 = new HoustDirector();
        houstDirector2.setHouseBuilder(new HighBuildingBuilder());
        houstDirector2.constructHouse();

    }
}
